﻿using System;
using System.Threading.Tasks;
using DB.SchemaSync.Library.Interfaces;
using DB.SchemaSync.Library.Models;

namespace BDSync.Domains.DBSnapShot
{
    public interface IDBSnapShotServices
    {
        String DbConnStr { get; set; }
        IDbConnectionProvider DbProvider { get; }
        Task<(Database db, string msg)> GetDataBaseRes();

        bool CheckConn();

        /// <summary>
        /// 导出数据库快照
        /// </summary>
        /// <param name="folderpath"></param>
        /// <returns></returns>
        Task<string> ExportDbJson(string folderpath);

        Task<Database> GetDataBase();
    }
}